<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="setAppBadge">setAppBadge 12</button>
    <button id="clearAppBade">clearAppBade</button>
    <pre>
        <code>
        navigator.setAppBadge(12);
        navigator.clearAppBadge();
        </code>
    </pre>
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <script>
      $('#setAppBadge').click(function () {
        navigator.setAppBadge(12);
      });
      $('#setAppBadge').click(function () {
        navigator.clearAppBadge();
      });
    </script>
  </body>
</html>
